//
//  LGSinaShare.h
//  ShareDemo
//
//  Created by Li Zhiping on 13-11-21.
//  Copyright (c) 2013年 Li Zhiping. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "LGShareContent.h"
#import "LGFriendsContent.h"

typedef enum{
    LGWBHttpRequestShare,
    LGWBHttpRequestFriends,
    LGWBHttpRequestLogout
}LGWBHttpRequestType;

@interface LGSinaShare : NSObject

+ (void)registerApp:(NSString *)appKey
        redirectURI:(NSString *)url;

/*
 * 判断新浪微博是否登录
 */
+ (BOOL)isSinaAuthored;

/*
 * 注销新浪微博
 */
+ (void)logout;

/*
 * 新浪微博授权操作
 */
+ (void)author;

/*
 * 新浪微博分享操作
 */
+ (void)shareContent:(LGShareContent *)content complete:(LGShareResultEvent)complete;

/*
 *通过新浪微博发送消息
 */
+ (void)shareWithWeiboClient:(LGShareContent *)content complete:(LGShareResultEvent)complete;

/*
 * 获取新浪微博好友列表操作
 */
+ (void)fetchFriendShip:(LGFriendsContent *)content complete:(LGFriendsResultEvent)complete;

/*
 *处理新浪微博认证、通过客户端发送微博等回调操作
 */
+ (BOOL)handleOpenURL:(NSURL *)url;

@end
